#pragma once
#include "afxwin.h"


// CFundSettingDlg dialog

class CFundSettingDlg : public CDialog
{
	DECLARE_DYNAMIC(CFundSettingDlg)

public:
	CFundSettingDlg(CWnd* pParent = NULL);   // standard constructor
	virtual ~CFundSettingDlg();

// Dialog Data
	enum { IDD = IDD_FUND_SETTING_DLG };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual BOOL OnInitDialog();

	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedOkBtn();
	afx_msg void OnBnClickedCancleBtn();
	afx_msg void OnBnClickedOk();
	afx_msg void OnBnClickedCancel();
	afx_msg void OnClose();

public:
	double GetCapital() const { return m_capital; }

private:
	void BtnSwtich(BOOL enable = FALSE);
	bool CheckPassword(char const* key);

private:
	CString m_fundPassword;
	CEdit m_capitalEdit;
	double m_capital;
};
